var str="hello world";
console.log(str.search("l"))
// startsWith 判断是否存在某值
var http="https://www.baidu.com"
console.log(http.startsWith("baidu"))